package com.face.server.repository;

import com.face.server.entity.DormitoryAdmin;
import com.face.server.vo.DormAdmin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by ryan on 2018/1/26.
 */
public interface DormAdminRepository extends MongoRepository<DormitoryAdmin,String>{
//    Page<DormitoryAdmin> findByNameRegexOrPhoneRegexOrIdNumberRegexOrAndDormitoryNumListIs(String name, String phone, String idcard, Integer num, Pageable pageable);

    Page<DormitoryAdmin> findByDormitoryBuildNumIn(List<Integer> buildList,Pageable pageable);
}
